<%=pageHead%>
<link href="genlayout.css" rel="stylesheet" type="text/css" />
<title><%=title%></title>
<script language="javascript" type="text/javascript" src="script.js"></script>
<script language="javascript">forceHTTPS();</script>
<%
( resetSession!;//logout
  .action=getp("action"); %>
<body class="online" onLoad="document.myForm.name.focus();"> 
  <div class="centering">
    <div class="smallPlane">
      <%=blockHead%>
      Login 
      <%=blockBody%><% 
  action=="incorrect" ? (%>Incorrect login<br /><%);%>
				<p><span style="white-space: nowrap;"><%=loginText%></span></p>
        <table>
          <form name="myForm" action="logincheck.tsp" method="post" encode="application/x-www-form-urlencoded"> 
          <input type="hidden" name="resource" size="20" value="<%=getp("resource")%>" />
        <tr><td>Name:</td><td><input type="text" name="name" size="20" value="<%=getp('name')%>" /></td></tr>
        <tr><td>Password:</td><td><input type="password" name="password" size="20"/></td></tr>
        <tr><td /><td><input type="submit" name="action" value="login" style="width:120;"/>&nbsp;&nbsp;<%=actref{(),"Guest"}%></td></tr><%
	pwCheck==() ? ( %>
        <tr><td>Optional</td></tr>
        <tr><td>new password:</td><td><input type="password" name="newpwd1" size="20" /></td></tr>
        <tr><td>Retype:</td><td><input type="password" name="newpwd2" size="20" /></td></tr><%
	);%>
          </form>
        </table>
      <%=blockEnd%>
    </div>
  </div>
</body><%
);%>
</head>
</html>
